package com.sz.biz.trade.constants;

import com.sz.common.base.exception.ErrorCode;
import com.sz.common.core.constants.SysErrorCodes;

/**
 * Function: 贸易的错误码. <br>
 * Date: 2017年07月13日 17:20 <br>
 * Author: wentao.chang
 */
public interface TrdErrorCodes extends SysErrorCodes {

    //code: 129000~129100 贸易项目
    ErrorCode ERROR_PROJECT_NOT_IN_ORGGROUP = new ErrorCode(129000, "error.project.notinorggroup");
    ErrorCode ERROR_PROJECT_HAS_THIS_FIRSTAUDIT = new ErrorCode(129001, "error.project.hasthisfirstaudit");
    ErrorCode ERROR_PROJECT_HAS_NOT_FINALAUDIT = new ErrorCode(129002, "error.project.hasnotfinalaudit");
    ErrorCode ERROR_PROJECT_HAS_NOT_CONTRACT_FILE=new ErrorCode(129003, "error.project.hasnotcontractfile");
    ErrorCode ERROR_PROJECT_CAN_NOT_DELETE_FILE=new ErrorCode(129004, "error.project.can.not.deletefile");
    ErrorCode ERROR_PROJECT_MUST_HAVE_DIFFRENT_COMPANY=new ErrorCode(129005, "error.project.must.have.diffrent.company");

    //code: 130000~130100 贸易订单
    ErrorCode ERROR_ORDER_GOODS_NOT_EXIST = new ErrorCode(130000, "error.order.goods.not.exist");
    ErrorCode ERROR_ORDER_GOODS_NOT_ENABLED = new ErrorCode(130001, "error.order.goods.not.enabled");
    ErrorCode ERROR_ORDER_GOODS_CURRENCY_DISUNITY = new ErrorCode(130002, "error.order.goods.currency.disunity");
    ErrorCode ERROR_ORDER_PROJECT_NOT_EXIST = new ErrorCode(130003, "error.order.project.not.exist");
    ErrorCode ERROR_ORDER_PROJECT_STATUS_ERROR = new ErrorCode(130004, "error.order.project.status.error");
    ErrorCode ERROR_ORDER_DRAFT_CAN_EDIT = new ErrorCode(130005, "error.order.draft.can.edit");
    ErrorCode ERROR_ORDER_DRAFT_CAN_DELETE = new ErrorCode(130006, "error.order.draft.can.delete");
    ErrorCode ERROR_ORDER_PURCHASER_NOT_EXIST = new ErrorCode(130007, "error.order.purchaser.not.exist");
    ErrorCode ERROR_ORDER_PURCHASER_IS_LOCKED = new ErrorCode(130008, "error.order.purchaser.is.locked");
    ErrorCode ERROR_ORDER_EXCHANGE_ERROR = new ErrorCode(130009, "error.order.exchange.error");
    ErrorCode ERROR_ORDER_PLATFORM_CANNOT_DELETE_CUSTOMER_ORDER = new ErrorCode(130010, "error.order.platform.cannot.delete.customer.order");
    ErrorCode ERROR_ORDER_CUSTOMER_CANNOT_DELETE_PLATFORM_ORDER = new ErrorCode(130011, "error.order.customer.cannot.delete.platform.order");
    ErrorCode ERROR_ORDER_STATUS_CANNOT_JUMP = new ErrorCode(130012, "error.order.status.cannot.jump");
    ErrorCode ERROR_ORDER_AMOUNT_TOO_LARGE = new ErrorCode(130013, "error.order.amount.too.large");
    ErrorCode ERROR_ORDER_GOODS_EMPTY = new ErrorCode(130014, "error.order.goods.empty");
    ErrorCode ERROR_ORDER_SIGNED_CAN_NOT_EDIT = new ErrorCode(130015, "error.order.signed.can.not.edit");
    ErrorCode ERROR_ORDER_SUPPLIER_NOT_EXIST = new ErrorCode(130016, "error.order.supplier.not.exist");

}
